package com.iqiyi.entity;

import com.iqiyi.domain.Actor;
import com.iqiyi.domain.Category;
import com.iqiyi.domain.Movie;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

/**
 * @auther Z_zjl
 * @date 2022/12/17 12:25
 * @Description
 */
public class MovieVo extends Movie {
    /**
     *  一部电影可以有多个演员
     */
    private List<Actor> actors;
    /**
     *  一部电影可以有多种类型
     */
    private List<Category> categories;

    public MovieVo() {
    }

    public MovieVo(List<Actor> actors, List<Category> categories) {
        this.actors = actors;
        this.categories = categories;
    }

    public List<Actor> getActors() {
        return actors;
    }

    public void setActors(List<Actor> actors) {
        this.actors = actors;
    }

    public List<Category> getCategories() {
        return categories;
    }

    public void setCategories(List<Category> categories) {
        this.categories = categories;
    }

    @Override
    public String toString() {
        return super.toString() + "MovieVo{" +
                "actors=" + actors +
                ", categories=" + categories +
                '}';
    }
}
